import 'package:clean_app/pages/collect_tab/collect_tab.dart';
import 'package:clean_app/pages/home/home.dart';
import 'package:clean_app/pages/login/login.dart';
import 'package:clean_app/pages/login/login_with_pwd.dart';
import 'package:clean_app/pages/login/register_with_pwd.dart';
import 'package:clean_app/pages/me/me.dart';
import 'package:clean_app/pages/process_img/process_img.dart';
import 'package:clean_app/pages/process_img/process_img_edit.dart';
import 'package:clean_app/pages/select_pic/select_pic.dart';
import 'package:clean_app/pages/take_pic/take_pic.dart';
import 'package:clean_app/pages/to_upload_task/to_upload_task.dart';

final routers = {
  "/draft_page": () => DraftsPage(),
  "/register_with_pwd": () => RegisterWithPwd(),
  "/login_with_pwd": () => LoginWithPwd(),
  "/": () => Home(),
  "/login": () => Login(),
  "/me": () => Me(),
  "/collect_tab": () => CollectTab(),
  "/take_pic": (data) => TakePic(levels: data),
  "/select_pic": (data) => SelectPic(levels: data),
  "/process_img": (data) => ProcessImg(
        file: data["file"],
        levels: data["levels"],
      ),
  "/process_img_edit": (data) => ProcessImgEdit(data: data),
};
